package dataTypes;

public class Felhasznalo {
	public int ID;
	public String felhnev;
	public String knev;
	public String vnev;
	public String email;
	public String jelszo;
	public String utolsobej;
	public int jogosultsag;
	
	public Felhasznalo(int id, String felhnev, String knev, String vnev, String email, String jelszo, String utolsobej, int jogosultsag){
		this.ID = id;
		this.felhnev = felhnev;
		this.knev = knev;
		this.vnev = vnev;
		this.email = email;
		this.jelszo = jelszo;
		this.utolsobej = utolsobej;
		if(utolsobej==null){
			this.utolsobej="nincs";
		}
		this.jogosultsag =jogosultsag;
	}
	public Felhasznalo(int id, String felhnev, String knev, String vnev, String email, String jelszo, int jogosultsag){
		this.ID = id;
		this.felhnev = felhnev;
		this.knev = knev;
		this.vnev = vnev;
		this.email = email;
		this.jelszo = jelszo;
		this.jogosultsag =jogosultsag;
	}
	public Felhasznalo(int id, String knev, String vnev, String email, String jelszo) {
		this.ID = id;
		this.knev = knev;
		this.vnev = vnev;
		this.email = email;
		this.jelszo = jelszo;
	}

	@Override
	public String toString() {
		return "Felhasznalo [ID=" + ID + ", felhnev=" + felhnev + ", knev="
				+ knev + ", vnev=" + vnev + ", email=" + email + ", jelszo="
				+ jelszo + ", utolsobej=" + utolsobej + ", jogosultsag="
				+ jogosultsag + "]";
	}
}
